package aop;

import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.core.io.FileSystemResource;
import org.springframework.core.io.Resource;
import org.springframework.core.io.ClassPathResource;


public class HelloApp {
		public static void main(String[] args){
			
			Resource rs = new ClassPathResource("./aop/beans.xml");
			BeanFactory factory = new XmlBeanFactory(rs);/*
			BeanFactory factory = new XmlBeanFactory(new FileSystemResource("AOP/beans.xml"));*/
			MessageBean bean = (MessageBean)factory.getBean("proxy");
			
			bean.sayHello();
		}
}
